<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="../../bootstrap/css/bootstrap.min.css"/>
    <link rel="stylesheet" href="../../bootstrap-table/bootstrap-table.css"/>
    <link rel="stylesheet" href="../../bootstrap/css/bootstrap-datetimepicker.min.css">
    <link rel="stylesheet" href="../../toastr/toastr.min.css">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
</head>
<body>
<div class="col-*-12">

    <div id="toolbar" class="form-inline">
        <div class="form-inline" style="margin-left: 280px">
            <label class="sr-only" for="r_numSearch">车牌号</label>
            <div class="input-group mb-2 mr-sm-2">
                <input type="text" class="form-control" id="r_numSearch" placeholder="车牌号">
            </div>
        </div>
        <div class="form-inline" style="margin-left: 100px;margin-top: 20px">
            <div class="input-group mb-3">
                <div class="input-group-prepend">
                    <span class="input-group-text">￥</span>
                    <span class="input-group-text">0.00</span>
                </div>
                <input type="text" id="r_lowcostSearch" class="form-control" aria-label="Dollar amount (with dot and two decimal places)">
            </div>
            <span style="margin:0 2px 8px 2px">~</span>
            <div class="input-group mb-3">
                <input type="text" id="r_highcostSearch" class="form-control" aria-label="Dollar amount (with dot and two decimal places)">
            </div>
            <button type="button" class="btn btn-outline-dark" id="searchRepairBtn" style="margin-left: 20px; margin-bottom: 16px">检索</button>
        </div>
        <div class="btn btn-outline-success" data-toggle="modal" data-target="#updateModal" id="updateRepairBtn" style="margin-left: 10px;margin-bottom: -5px">修改记录</div>
    </div>
    <table id="repairTab" class="table table-hover"></table>

    <div class="modal fade" id="addModal" tabindex="-1" role="dialog" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                        &times;
                    </button>
                    <h4 class="modal-title" id="myDialogHeaderLable"></h4>
                </div>
                <div class="modal-body">
                    <div id="insertcarinfo" role="form">
                        <!--员工编号-->
                        <div class="form-group">
                            <input type="hidden" id="r_id">
                            <input type="text" class="form-control" id="r_num" placeholder="车牌号" readonly>
                        </div>
                        <!--姓名-->
                        <div class="form-group">
                            <label>费用</label>
                            <input type="text" class="form-control" id="r_cost" placeholder="费用">
                        </div>
                        <div class="form-row">
                            <div class="form-group col-md-9">
                                <label for="r_state">状态</label>
                                <select id="r_state"  class="form-control">
                                    <option  value="1">工作</option>
                                    <option  value="3">维修</option>
                                    <option selected ></option>
                                </select>
                            </div>
                        </div>
                        <div class="row">
                            <div class='col-sm-6'>
                                <div class="form-group">
                                    <label>维修日期：</label>
                                    <!--指定 date标记-->
                                    <div class='input-group date' >
                                        <input type='text' class="form-control" id="r_date" readonly />
                                        <span class="input-group-addon">
                                                <span class="glyphicon glyphicon-calendar"></span>
                                                </span>
                                    </div>
                                </div>
                            </div>
                            <div class='col-sm-6'>
                                <div class="form-group">
                                    <label>归还日期：</label>
                                    <!--指定 date标记-->
                                    <div class='input-group date' >
                                        <input type='text' class="form-control" id="r_return"/>
                                        <span class="input-group-addon">
                                                <span class="glyphicon glyphicon-calendar"></span>
                                                </span>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="modal-footer">
                            <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                            <button type="button" class="btn btn-primary" id="addRecord"></button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="../../jquery/jquery-3.4.1.min.js"></script>
<script src="../../bootstrap/js/bootstrap.min.js"></script>
<script src="../../bootstrap-table/bootstrap-table.js"></script>
<script src="../../bootstrap-table/locale/bootstrap-table-zh-CN.js"></script>
<script src="../../js/moment-with-locales.js"></script>
<script src="../../bootstrap/js/bootstrap-datetimepicker.min.js"></script>
<script src="../../toastr/toastr.min.js"></script>
<script src="../../js/repair.js"></script>
</body>
</html>